package com.tbit.uqbike.webmanager.business.maintain_performance.service;

import com.baomidou.dynamic.datasource.annotation.DS;
import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import com.tbit.config.datasource.DataSource;
import com.tbit.uqbike.webmanager.business.maintain_performance.dao.log.PowerChangePerformanceLogDao;
import com.tbit.uqbike.webmanager.business.maintain_performance.object.DispatchPerformanceLog;
import com.tbit.uqbike.webmanager.business.maintain_performance.object.PowerChangePerformanceLog;
import lombok.AllArgsConstructor;
import lombok.extern.slf4j.Slf4j;
import org.springframework.stereotype.Service;
import org.springframework.transaction.annotation.Transactional;

import java.util.Collection;
import java.util.List;

/**
 * @author: qiu.longjie
 * @create: 2025-04-08
 */
@Slf4j
@Service
@AllArgsConstructor
public class PowerChangePerformanceLogService extends ServiceImpl<PowerChangePerformanceLogDao, PowerChangePerformanceLog> {

    @DS(DataSource.LOG)
    @Transactional
    public boolean insertBatch(Collection<PowerChangePerformanceLog> entityList) {
        return this.saveBatch(entityList);
    }
}